package adv2;

public class MathTest {

	public static void main(String[] args) {
		System.out.println(Math.PI);
		System.out.println(Math.E);
		// Math.sin(a)
		// Math.cos(a)
		// Math.tan(a)
		// 开二次方根
		double d = Math.sqrt(40);
		System.out.println(d);
		// a的b次方
		double d2 = Math.pow(4, 13);
		System.out.println(d2);
		int k = 141;
		for (int i = 2, t = (int) Math.sqrt(k); i <= t; i++) {
			if (k % i == 0) {
				System.out.println("不是质数");
				break;
			}
		}
		int m = Math.min(14, 51);
		System.out.println(m);
	}

}
